package com.wwmz.composite.aggregate.simple;

/**
 * Created by wumz on 2020/9/14 13:27
 */
public class ProductDao {

    private DBConnection dbConnection;
    public void setDbConnection(DBConnection dbConnection) {
        this.dbConnection = dbConnection;
    }
    public void addProduct(){
        String conn = dbConnection.getConnection();
        System.out.println("使用"+conn+"增加产品");
    }
}
